/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.web.mapper;

import com.jeeplus.core.persistence.BaseMapper;
import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.jeeplus.modules.web.entity.WxUser;
import com.jeeplus.modules.web.entity.WxUserWallet;
import com.jeeplus.modules.web.entity.wx.YsUser;
import org.apache.ibatis.annotations.Param;

/**
 * 钱包MAPPER接口
 * @author rongjie
 * @version 2017-08-06
 */
@MyBatisMapper
public interface WxUserWalletMapper extends BaseMapper<WxUserWallet> {

    int addWxUserWalletMapper(YsUser wxUserInfo);

    WxUserWallet getUserWallet(String id);

    int setAddMoney(@Param("orderMoney") String orderMoney, @Param("addOrderMoney") String addOrderMoney, @Param("orderNumber") String orderNumber);

    int setDelMoney(@Param("id") String id, @Param("orderMoney") Double orderMoney);

    /***
     * 修改积分
     * @param id
     * @param i
      * @return
     */
    int setIntegration(@Param("id") String id, @Param("i") int i );

    int setAddIntegration(@Param("id") String id, @Param("i") int i );

    int addUserCoupon(YsUser wxUserInfo);
}
